package io;

import java.io.*;

/**
 * zixing自行组件留链接，使用PrintWriter按行写出字符串
 */
public class PWDemo2 {
    public static void main(String[]args) throws FileNotFoundException, UnsupportedEncodingException {
        FileOutputStream fos=new FileOutputStream("pw.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos,"utf-8");
        BufferedWriter bw=new BufferedWriter(osw);
        PrintWriter pw=new PrintWriter(bw);
        pw.println("就会官方合肥市福爱尔海关");
        pw.println("我会扳手拆金库大欧");
        System.out.println("写出完毕");
        pw.close();


    }
}
